<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link rel="stylesheet" type="text/css" href="css/feedback.css" />
	</head>

	<body>
		<div class="web">
			<header>
				<div class="img"><a href="help&feedback.html"><img src="img/icon_back.png"/></a></div>
				<p>意见反馈</p>
			</header>
			
			<div id="big">
				<div class="click">
					<p>请选择反馈类型</p>
					<form action="" method="post">
						<ul>
							<li>
								<label><input type="radio" name="type" id="" value="" /><span>产品问题</span></label>
							</li>
							<li>
								<label><input type="radio" name="type" id="" value="" /><span>支付问题</span></label>
							</li>
							<li>
								<label><input type="radio" name="type" id="" value="" /><span>配送问题</span></label>
							</li>
							<li>
								<label><input type="radio" name="type" id="" value="" /><span>售后问题</span></label>
							</li>
						</ul>
						<input type="button" onclick="close1()" value="提交" />
					</form>
				</div>
			</div>
			<div id="small">
				<img src="img/smile.png"/>
				<p>意见反馈成功!</p>
			</div>
			
			<section>
				<div class="type">
					<ul class="clearfix">
						<li class="fl">
							<span>反馈类型</span>
						</li>
						<li class="fr">
							<span>意见类型</span>
							<a onclick="open1()">&gt;</a>
						</li>
					</ul>
				</div>
				<div class="hr">
					
				</div>
				<textarea placeholder="请输入产品意见，我们将不断改善优化"></textarea>
				<div class="hr">
					
				</div>
				<input type="number" value="" placeholder="请输入您的手机号/邮箱（选填）"/>
				<div class="foot">
					<button  id="submitBtn">提交</button>
				</div>
			</section>
		</div>
		
		<script type="text/javascript" src="../market/js/common.js"></script>
		
		<script>
			document.body.style.height = window.innerHeight + "px";

var smallDiv = document.getElementById("small");
var submitBtn = document.querySelector("#submitBtn");
console.log(submitBtn);
submitBtn.addEventListener("click",function(){
	close1();
	console.log(smallDiv)
	smallDiv.style.display = "block";
	setTimeout(function(){
		smallDiv.style.display = "none";
		window.location.href= "help&feedback.html"
	},2000)
})
			/*动态改变根元素字体大小*/
			function recalc() {
				var clientWidth = document.documentElement.clientWidth;
				if(!clientWidth) return;
				document.documentElement.style.fontSize = 40 * (clientWidth / 640) + 'px';
				//字体大小   =1个rem单位表示多少个像素*(设备的宽度 /设计宽度)
			}

			function initRecalc() {
				recalc();
				var resizeEvt = 'osrientationchange' in window ? 'orientationchange' : 'resize';
				if(!document.addEventListener) return;
				window.addEventListener(resizeEvt, recalc, false);
				document.addEventListener('DOMContentLoaded', recalc, false);
			}
			initRecalc();
		</script>

	</body>

</html>